<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body>
<div class="ibox-content" style="padding-right: 8%">
    <form class="form-horizontal m-t" id="signupForm">
        <div class="form-group">
            <label class="col-sm-2 control-label">编号<em class="gg-star">*</em>：</label>
            <div class="col-sm-4">
                <input id="num" AUTOCOMPLETE="off" name="num" class="form-control" type="text">
            </div>

            <label class="col-sm-2 control-label">生日：</label>
            <div class="col-sm-4">
                <input id="birthday" AUTOCOMPLETE="off" name="birthday" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">RFID编号：</label>
            <div class="col-sm-4">
                <input id="rfidNum" AUTOCOMPLETE="off" name="rfidNum" class="form-control" type="text">
            </div>

            <label class="col-sm-2 control-label">激光号：</label>
            <div class="col-sm-4">
                <input id="laserNum" AUTOCOMPLETE="off" name="laserNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">上代编号：</label>
            <div class="col-sm-4">
                <input id="parentNum" AUTOCOMPLETE="off" name="parentNum" class="form-control" type="text">
            </div>
            <label class="col-sm-2 control-label">批次<em class="gg-star">*</em>：</label>
            <div class="col-sm-4">
                <input id="batchNum" AUTOCOMPLETE="off" name="batchNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">种类<em class="gg-star">*</em>：</label>
            <div class="col-sm-4">
                <!-- 									<input id="typeName" AUTOCOMPLETE="off" name="typeName" class="form-control" type="text"> -->
                <sys:dict type="animal_type" id="typeName" AUTOCOMPLETE="off" name="typeName" class="form-control"
                          firstValue="" firstText="请选择种类"
                          onchange="base.dict.resetDict('typeName','varietyName')"/>
            </div>

            <label class="col-sm-2 control-label">品种<em class="gg-star">*</em>：</label>
            <div class="col-sm-4">
                <!-- 									<input id="varietyName" AUTOCOMPLETE="off" name="varietyName" class="form-control" type="text"> -->
                <sys:dict type="animal_varieties" id="varietyName" AUTOCOMPLETE="off" name="varietyName"
                          class="form-control" firstValue="" firstText="请选择品种"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">最初体重：</label>
            <div class="col-sm-4">
                <input id="initWeight" AUTOCOMPLETE="off" name="initWeight" class="form-control" type="text">
            </div>

            <label class="col-sm-2 control-label">所属养殖户：</label>
            <div class="col-sm-4">
                <sys:dict
                        th:onload="'get:system/sysDept/dict/list?cDeptId='+${session.sysUser.deptId}"
                        valueText="deptId" nameText="name" id="deptId" AUTOCOMPLETE="off" name="deptId"
                        th:value="${session.sysUser.deptId}"
                        class="form-control" style="" firstValue="" firstText="请选择养殖户"
                        onchange="base.dict.resetDictByDept('deptId','spaceId');base.dict.resetDictByDept('deptId','supplierId')"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">入住场地：</label>
            <div class="col-sm-4">
                <sys:dict th:onload="'get:animal/space/dict/list?cDeptId='+${session.sysUser.deptId}"
                          superValueText="deptId" valueText="id" nameText="name" id="spaceId"
                          AUTOCOMPLETE="off" name="spaceId"
                          class="form-control" style="" firstValue="" firstText="请选择场地"/>
            </div>

            <label class="col-sm-2 control-label">供应商：</label>
            <div class="col-sm-4">
                <sys:dict th:onload="'get:animal/supplier/dict/list?cDeptId='+${session.sysUser.deptId}"
                          superValueText="deptId" valueText="id" nameText="name" id="supplierId"
                          AUTOCOMPLETE="off" name="supplierId"
                          class="form-control" style="" firstValue="" firstText="请选择供应商"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">其他信息：</label>
            <div class="col-sm-4">
                <input id="otherInfo" AUTOCOMPLETE="off" name="otherInfo" class="form-control" type="text">
            </div>

            <label class="col-sm-2 control-label">状态：</label>
            <div class="col-sm-4">
                <sys:dict type="inputs_status" value="0" id="status" AUTOCOMPLETE="off" name="status"
                          class="form-control"
                          firstValue="0" firstText="请选择状态"/>
                <!-- 									<input id="status" AUTOCOMPLETE="off" name="status" class="form-control" type="text"> -->
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-7 col-sm-offset-5">&nbsp;
                <button type="submit" class="btn btn-primary">提 &nbsp;&nbsp; 交</button>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="${'js/appjs/animal/inputs/add.js?random='+#strings.randomAlphanumeric(9)}">
</script>
</body>
</html>
